/* 
 * File:   JUuid.h
 * Author: johnneyshi
 *
 * Created on 2013年1月6日, 上午11:41
 */

#ifndef JUUID_H
#define	JUUID_H
#include <string>
#include "JSerialize.h"
#include "JInOutPut.h"

class JUuid : public JSerialize
{
public:
    JUuid();
    virtual ~JUuid();
    //void Generate();
    static std::string ToString();
    std::string Generate();
    std::string Get();
    bool operator == (const JUuid& _uuid);
    virtual int Serialize(JInOutPut& strea,int& allSize);
    virtual int ReSerialize(JInOutPut& strea);
private:
    //Serialize begin.
    std::string strUuid;
    //Serialize end.
};

#endif	/* JUUID_H */

